package org.ccay.core.test.mock.jms;

import java.io.Serializable;

import javax.jms.BytesMessage;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MapMessage;
import javax.jms.Message;
import javax.jms.MessageConsumer;
import javax.jms.MessageListener;
import javax.jms.MessageProducer;
import javax.jms.ObjectMessage;
import javax.jms.Queue;
import javax.jms.QueueBrowser;
import javax.jms.Session;
import javax.jms.StreamMessage;
import javax.jms.TemporaryQueue;
import javax.jms.TemporaryTopic;
import javax.jms.TextMessage;
import javax.jms.Topic;
import javax.jms.TopicSubscriber;

/**
 * Mock JMS Session for test.
 */
public class MockSession implements Session {

	public void close() throws JMSException {
	}

	public void commit() throws JMSException {

	}

	public QueueBrowser createBrowser(Queue arg0) throws JMSException {
		return null;
	}

	public QueueBrowser createBrowser(Queue arg0, String arg1)
			throws JMSException {
		return null;
	}

	public BytesMessage createBytesMessage() throws JMSException {
		return null;
	}

	public MessageConsumer createConsumer(Destination arg0) throws JMSException {
		return null;
	}

	public MessageConsumer createConsumer(Destination arg0, String arg1)
			throws JMSException {
		return null;
	}

	public MessageConsumer createConsumer(Destination arg0, String arg1,
			boolean arg2) throws JMSException {
		return null;
	}

	public TopicSubscriber createDurableSubscriber(Topic arg0, String arg1)
			throws JMSException {
		return null;
	}

	public TopicSubscriber createDurableSubscriber(Topic arg0, String arg1,
			String arg2, boolean arg3) throws JMSException {
		return null;
	}

	public MapMessage createMapMessage() throws JMSException {
		return null;
	}

	public Message createMessage() throws JMSException {
		return null;
	}

	public ObjectMessage createObjectMessage() throws JMSException {
		return null;
	}

	public ObjectMessage createObjectMessage(Serializable arg0)
			throws JMSException {
		return null;
	}

	public MessageProducer createProducer(Destination arg0) throws JMSException {
		return new MessageProducer() {
			public void setTimeToLive(long arg0) throws JMSException {
			}

			public void setPriority(int arg0) throws JMSException {
			}

			public void setDisableMessageTimestamp(boolean arg0)
					throws JMSException {
			}

			public void setDisableMessageID(boolean arg0) throws JMSException {
			}

			public void setDeliveryMode(int arg0) throws JMSException {
			}

			public void send(Destination arg0, Message arg1, int arg2,
					int arg3, long arg4) throws JMSException {
			}

			public void send(Message arg0, int arg1, int arg2, long arg3)
					throws JMSException {
			}

			public void send(Destination arg0, Message arg1)
					throws JMSException {
			}

			public void send(Message arg0) throws JMSException {
			}

			public long getTimeToLive() throws JMSException {
				return 0;
			}

			public int getPriority() throws JMSException {
				return 0;
			}

			public boolean getDisableMessageTimestamp() throws JMSException {
				return false;
			}

			public boolean getDisableMessageID() throws JMSException {
				return false;
			}

			public Destination getDestination() throws JMSException {
				return null;
			}

			public int getDeliveryMode() throws JMSException {
				return 0;
			}

			public void close() throws JMSException {
			}
		};
	}

	public Queue createQueue(String arg0) throws JMSException {
		return null;
	}

	public StreamMessage createStreamMessage() throws JMSException {
		return null;
	}

	public TemporaryQueue createTemporaryQueue() throws JMSException {
		return null;
	}

	public TemporaryTopic createTemporaryTopic() throws JMSException {
		return null;
	}

	public TextMessage createTextMessage() throws JMSException {
		return null;
	}

	public TextMessage createTextMessage(String arg0) throws JMSException {
		return null;
	}

	public Topic createTopic(String arg0) throws JMSException {
		return null;
	}

	public int getAcknowledgeMode() throws JMSException {
		return 0;
	}

	public MessageListener getMessageListener() throws JMSException {
		return null;
	}

	public boolean getTransacted() throws JMSException {
		return false;
	}

	public void recover() throws JMSException {
	}

	public void rollback() throws JMSException {
	}

	public void run() {
	}

	public void setMessageListener(MessageListener arg0) throws JMSException {
	}

	public void unsubscribe(String arg0) throws JMSException {
	}

}
